package com.estate.service.floor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.estate.mapper.FloorMapper;
import com.estate.pojo.Floor;

@Service
public class FloorServiceImpl implements FloorService {
	
	@Autowired
	private FloorMapper floorMapper;
	
	@Override
	public Boolean addFloor(Floor floor) {
		int num;
		try {
			num = floorMapper.insert(floor);
			if(num > 0){
				return true;
			}
		} catch (Exception e) {
			e.printStackTrace();
			return false;
		}
		return false;
	}

}
